﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using MP.LayerHelper.MP_OBS.BLL;
using MP.LayerHelper.MP_OBS.DAL.EntityClasses;
using MP.LayerHelper.MP_OBS.DAL.HelperClasses;

using MP.Core.Library;
using MP.Core.Config;

public partial class Admin_Hurman_Controls_ViewBranch : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public Guid Id
    {
        get { return !string.IsNullOrEmpty(Request["Id"]) ? Util.IsGuid(Request["Id"]) ? new Guid(Request["Id"]) : Guid.Empty : Guid.Empty; }
    }

    public void loadData()
    {
        HrBranchEntity branch = HrBranchManager.CreateInstant().GetById(Id);
        if (branch != null)
        {
            txtAddress.Text = branch.Address;
            txtBranhCode.Text = branch.BranhCode;
            txtBranhName.Text = branch.BranhName;
            txtDescription.Text = branch.Description;
            txtPhone.Text = branch.Phone;
        }
    }
}
